<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%@page import="iwpl.project.entities.Contracts"%>
<%@page import="iwpl.project.entities.Customers"%>
<%@page import="iwpl.project.entities.*"%>
<%@page import="iwpl.project.dao.*" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
  <head>
  <link rel="stylesheet" href="css/CommonCSS.css" type="text/css" />
    <base href="<%=basePath%>">
    
    <title>My JSP 'Manage_Contract.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel="stylesheet" href="css/datepicker.css" type="text/css" />
		<script type="text/javascript" src="js/datepicker.js"></script>
<script src="js/jquery-Source.js"></script>
		<script type="text/javascript"
			src="js/jquery-Validation.js"></script>
		<script type="text/javascript">
  $(document).ready(function()
  {
    $("#commentForm").validate();
  });
  </script>
  </head>
  
  <body>
  			<table align="center" border="1px" cellpadding="0" cellspacing="0"
				style="width: 780px; border-color: #3399FF">
				<tr>
					<td colspan="2">ops<jsp:include page="Header.jsp"></jsp:include>
					</td>
				</tr>
				<tr>
					<td style="width: 245px" nowrap="nowrap" valign="top">&nbsp;<jsp:include page="Left.jsp"></jsp:include>
					</td>
					<td style="width: 75%" valign="top">
						    <form name="frm_form" action="/DepartmentManage/servlet/Control_Contract?action=update" method="get">
    	<table border="1">
    		<tr>
    			<td><b>ContractType : </b></td>
    			<td colspan="2">
    				<select name="cbo_contracttype" style="width:50px">
    					<option value="1">Buy</option>
    					<option value="2">Hire</option>
    				</select>
    			</td>
    		</tr>
    		<tr>
    			<td><b>Employee : </b></td>
    			<td>
    				<label name="lbl_employee"></label>
    				<input type="hidden" name="hd_empl" value="1"/>
    			</td>
    			<td>
    				<center><a href=#>Find</a></center>
    			</td>
    		</tr>
    		<tr>
    			<td>
    			<b>Apartment : </b>
    			</td>
    			<td>
    				<label name="lbl_apartment"></label>
    				<input type="hidden" name="hd_apart" value="1"/>
    			</td>
    			<td>
    				<center><a href=#>Find</a></center>
    			</td>
    		</tr>
    		<tr>
    			<td><b>SigningDate : </b></td>
    			
    			<td>
    				<input type="text" name="txt_signingdate"/>
    			</td>
    			<td>
    				<input type="button" name="bnt_sdate" value="Select Date" onclick="displayDatePicker('txt_signingdate', this);"/>
    			</td>
    		</tr>
    		<tr>
    			<td><b>HiringDate : </b></td>
    			<td>
    				<input type="text" name="txt_hiringdate"/>
    			</td>
    			<td>
    				<input type="button" name="bnt_hdate" value="Select Date" onclick="displayDatePicker('txt_hiringdate', this);"/>
    			</td>
    		</tr>
    		<tr>
    			<td><b>EndofDate : </b></td>
    			<td>
    				<input type="text" name="txt_enddate"/>
    			</td>
    			<td>
    				<input type="button" name="bnt_edate" value="SelectDate" onclick="displayDatePicker('txt_enddate', this);"/>
    			</td>
    		</tr>
    		<tr>
    			<td><b>Purchase Date :</b></td>
    			<td>
    				<input type="text" name="txt_purchasedate" >
    			</td>
    			<td>
    				<input type="button" name="bnt_pdate" value="Select Date" onclick="displayDatePicker('txt_purchasedate', this);"/>
    			</td>
    		</tr>
    		<tr>
    			<td><b>ReceivedDate : </b></td>
    			<td>
    				<input type="text" name="txt_receiveddate"/ >
    			</td>
    			<td>
    				<input type="button" name="bnt_rdate" value="SelectDate" onclick="displayDatePicker('txt_receiveddate', this);"/>
    			</td>
    		</tr>
    		<tr>
    			<td colspan="3">
    				<table width=100%>
    					<tr>
    						
    						<td>
    							<center><input type="submit" name="bnt_UpDate" value="Update"></center>
    						</td>
    						<td>
    							<center><input type="button" name="bnt_cancel" value="Cancel" onclick="chuyentrang();"></center>
    						</td>
    					</tr>
    				</table>
    			</td>
    		</tr>
    	</table>
    </form>
					</td>
					</tr>
		
			</table>
    
  </body>
</html>
